package se.chalmers.tda366.crumble.gui.dialogs;
import java.awt.BorderLayout;

import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JPanel;

import se.chalmers.tda366.crumble.gui.utils.CloseActionListener;



/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class DialogClosePanel extends JPanel {
	
	public DialogClosePanel(){
		initGUI();
	}

	private void initGUI() {
		try {
			BorderLayout thisLayout = new BorderLayout();
			this.setLayout(thisLayout);
			{
				JButton exitButton = new JButton("",new ImageIcon(getClass().getResource("../../images/close_button.png")));
				this.add(exitButton, BorderLayout.WEST);
				exitButton.setOpaque(true);
				exitButton.setContentAreaFilled(false);
				exitButton.addActionListener(new CloseActionListener());
			}
		} catch(Exception e) {
			e.printStackTrace();
		}
	}
}
